<html>
<head><meta charset="utf-8"><title>incr. comp. on rustc can break itself · t-compiler · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/index.html">t-compiler</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/incr.2E.20comp.2E.20on.20rustc.20can.20break.20itself.html">incr. comp. on rustc can break itself</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="199284462"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/incr.%20comp.%20on%20rustc%20can%20break%20itself/near/199284462" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/incr.2E.20comp.2E.20on.20rustc.20can.20break.20itself.html#199284462">(May 31 2020 at 01:29)</a>:</h4>
<p>Anybody seen this one before?</p>
<p><code>thread 'rustc' panicked at 'no entry found for key', /home/jonas/dev/rust/src/librustc_middle/ty/query/on_disk_cache.rs:653:12</code></p>
<p>When this happens, the incr. comp. cache seems to be corrupted permanently and only clearing it can fix this. This might be caused by running <code>./x.py check</code> concurrently (via rust-analyzer) while also running <code>./x.py test</code>.</p>



<a name="199284508"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/incr.%20comp.%20on%20rustc%20can%20break%20itself/near/199284508" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/incr.2E.20comp.2E.20on.20rustc.20can.20break.20itself.html#199284508">(May 31 2020 at 01:30)</a>:</h4>
<p>I've seen plenty of incr. comp. ICEs with this setup, but none that didn't go away after rerunning the command, so this might be a recent injection (last 100-200 commits on master?)</p>



<a name="199284526"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/incr.%20comp.%20on%20rustc%20can%20break%20itself/near/199284526" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/incr.2E.20comp.2E.20on.20rustc.20can.20break.20itself.html#199284526">(May 31 2020 at 01:31)</a>:</h4>
<p>Heh, according to <code>git reflog</code>, I've pulled these commits from master before this started happening: <a href="https://github.com/rust-lang/rust/compare/4bd32c98047...74e80468347"><code>4bd32c98047...74e80468347</code></a></p>



<a name="199284585"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/incr.%20comp.%20on%20rustc%20can%20break%20itself/near/199284585" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/incr.2E.20comp.2E.20on.20rustc.20can.20break.20itself.html#199284585">(May 31 2020 at 01:33)</a>:</h4>
<p>No suspicious commits in that range, so perhaps this was preexisting</p>



<a name="199284706"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/incr.%20comp.%20on%20rustc%20can%20break%20itself/near/199284706" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/incr.2E.20comp.2E.20on.20rustc.20can.20break.20itself.html#199284706">(May 31 2020 at 01:37)</a>:</h4>
<p>I think I saw that ICE yesterday when I was building servo. Cleaning the target directory fixed it</p>



<a name="199284714"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/incr.%20comp.%20on%20rustc%20can%20break%20itself/near/199284714" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/incr.2E.20comp.2E.20on.20rustc.20can.20break.20itself.html#199284714">(May 31 2020 at 01:37)</a>:</h4>
<p>I forget whether or not I tried running it again before cleaning though</p>



<a name="199340933"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/incr.%20comp.%20on%20rustc%20can%20break%20itself/near/199340933" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Félix Fischer <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/incr.2E.20comp.2E.20on.20rustc.20can.20break.20itself.html#199340933">(Jun 01 2020 at 06:36)</a>:</h4>
<p>I have the feeling that I saw this like 3 weeks ago, but I might be mistaking it for another issue...</p>



<a name="199340950"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/incr.%20comp.%20on%20rustc%20can%20break%20itself/near/199340950" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Félix Fischer <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/incr.2E.20comp.2E.20on.20rustc.20can.20break.20itself.html#199340950">(Jun 01 2020 at 06:37)</a>:</h4>
<p>I do barely remember something like this happening when I was testing testing testing with incremental builds</p>



<a name="199341010"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/incr.%20comp.%20on%20rustc%20can%20break%20itself/near/199341010" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Félix Fischer <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/incr.2E.20comp.2E.20on.20rustc.20can.20break.20itself.html#199341010">(Jun 01 2020 at 06:38)</a>:</h4>
<p>And I do have rust-analyzer running in the background whenever I'm working with rustc</p>



<a name="199375653"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/incr.%20comp.%20on%20rustc%20can%20break%20itself/near/199375653" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> pnkfelix <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/incr.2E.20comp.2E.20on.20rustc.20can.20break.20itself.html#199375653">(Jun 01 2020 at 14:29)</a>:</h4>
<p>I wouldn't be surprised if there are race conditions ...</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>